package cn.mill.demo.weixin;

import java.io.Serializable;

import cn.mill.common.Tag;
import cn.mill.common.annotation.Property;

public class Access implements Serializable {
	
	private static final long serialVersionUID = -4394016149016579460L;
	
	@Property(name = "access_token", tag = Tag.URL)
	private String token;
	@Property(name = "expires_in")
	private long expires;
	@Property(name = "openid", tag = Tag.URL)
	private String openId;
	
	public String getToken() {
		return token;
	}
	
	public void setToken(String token) {
		this.token = token;
	}
	
	public long getExpires() {
		return expires;
	}
	
	public void setExpires(long expires) {
		this.expires = expires;
	}
	
	public String getOpenId() {
		return openId;
	}
	
	public void setOpenId(String openId) {
		this.openId = openId;
	}
	
	@Override
	public String toString() {
		return "Access [token=" + token + ", expires=" + expires + ", openId=" + openId + "]";
	}
	
}
